import request from '@/utils/request'

// 查询类别代码-物料编码匹配规则列表
export function listBm(query) {
  return request({
    url: '/project/bm/list',
    method: 'get',
    params: query
  })
}

// 查询类别代码-物料编码匹配规则详细
export function getBm(bmId) {
  return request({
    url: '/project/bm/' + bmId,
    method: 'get'
  })
}

// 新增类别代码-物料编码匹配规则
export function addBm(data) {
  return request({
    url: '/project/bm',
    method: 'post',
    data: data
  })
}

// 修改类别代码-物料编码匹配规则
export function updateBm(data) {
  return request({
    url: '/project/bm',
    method: 'put',
    data: data
  })
}

// 删除类别代码-物料编码匹配规则
export function delBm(bmId) {
  return request({
    url: '/project/bm/' + bmId,
    method: 'delete'
  })
}

// 导出类别代码-物料编码匹配规则
export function exportBm(query) {
  return request({
    url: '/project/bm/export',
    method: 'get',
    params: query
  })
}
// 查询类别代码-物料编码匹配规则详细
export function getBodFxdmByZxdm(wldm) {
  return request({
    url: '/project/bm/getBodFxdmByZxdm/' + wldm,
    method: 'get'
  })
}

